package com.ruoyi.common.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * author: 于家宝 ，用户评论信息存储 ，并且分配对应系统用户进行处理
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("business_comment_info")
public class CommentInfo {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 状态枚举 {@linkplain Orders.CURRENT_TYPE}
     */
    @TableField("whether_comment")
    private String whetherComment;

    @TableField("order_picture")
    private String orderPicture;

    @TableField("small_voucher_picture")
    private String smallVoucherPicture;

    @TableField("comment_picture")
    private String commentPicture;

    @TableField("order_no")
    private String orderNo;

    @TableField("platform_order_no")
    private String platformOrderNo;

    /**
     * 通过查库确认即可不用传 我自己来查就可以
     */
    @TableField("sys_user_id")
    private Long sysUserId;

    /**
     * 审核状态
     * {@linkplain Orders.CURRENT_TYPE}
     */
    @TableField("review_status")
    private String reviewStatus;

    /**
     * 审核状态描述
     * {@linkplain  Orders.CURRENT_TYPE}
     */
    @TableField("review_status_desc")
    private String reviewStatusDesc;


    /**
     * 1. 未操作
     * 0. 已操作
     */
    @TableField("status")
    private int status;






    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
